<?php
global $header;
global $footer;
global $menu;
global $featureManager;
global $currentUser;
global $person;
$header['title'] = $person['basic_info'][first_name]. ' ' . $person['basic_info']['last_name'];
$header['page_id'] = 'people';

#$featureManager->apply("com.yizin.platform.site.menu", $menu);
#$header['menu'] = $menu['html'];
$featureManager->apply("com.yizin.platform.site.header", $header);
$featureManager->apply("com.yizin.platform.site.footer", $footer);

?>
<?php echo $header['html']; ?>

	<ul class="main-menu">
		<li><a href="<?php echo REQUEST_BASE;?>projects/">projects</a></li>
		<li class="current"><a href="<?php echo REQUEST_BASE;?>people/">people</a></li>
		<li><a href="<?php echo REQUEST_BASE;?>seminars/">seminars</a></li>
	</ul>
</div>
<div id="main">
	<div class="main-wrapper">
		<h2 class="page-title"><a href="<?php echo REQUEST_BASE;?>people/" class="people">People</a></h2>
		<div class="main-content single">
			<?php $basic_info = $person['basic_info']; ?>
			<div class="content-container show">
				<div class="main-info clearfix">
					<div class="image-info">
						<img src="<?php echo RESOURCE_BASE . $basic_info['photo']?>" alt="<?php echo $basic_info['first_name'] . '' . $basic_info['last_name'];?>" />
					</div>
					<div class="text-info">
						<h4 class="name">
							<?php echo $basic_info['first_name'] . ' ' . $basic_info['last_name']; ?>
						</h4>
						<div class="misc">
							<p><?php echo $basic_info['title']?></p>
							<p>Enrolled Date: <?php echo $basic_info['enrolled_date']; ?></p>
							<p><a href="mailto:<?php echo $basic_info['mail']; ?>"><?php echo $basic_info['mail']?></a></p>
						</div>
					</div>
				</div>
				<div class="detail-info">
					<table class="info-table">
						<?php foreach ($person['optional_info'] as $key => $value) {?>
						<tr>
							<th><?php echo $key; ?></th>
							<td><?php echo $value; ?></td>
						</tr>
						<?php } ?>
					</table>
				</div>
			</div>
		</div>
	</div>		
</div>

<?= $footer['html'] ?>

